<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
<!--
	$(function(){
	//	SwapTab('setting','on','',3,<?php echo (isset($_GET['tab']) && $_GET['tab']) ? $_GET['tab'] : '1'?>);
	})
//-->
</script>
<form action="__SELF__" method="post" id="myform">
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
            <li id="tab_setting_1" class="on" onclick="SwapTab('setting','on','',3,1);">站点地图</li>
</ul>
<div class="explain-col">
Sitemaps 服务旨在使用 Feed 文件 sitemap.xml 通知 Google、Yahoo! 以及 Microsoft 等 Crawler(爬虫)网站上哪些文件需要索引、这些文件的最后修订时间、更改频度、文件位置、相对优先索引权，这些信息将帮助他们建立索引范围和索引的行为习惯。详细信息请查看 sitemaps.org 网站上的说明。
</div>
<div id="div_setting_1" class="contentList pad-10">
<table width="100%"  class="table_form">
<tr>
     <th width="120">首页更新频率</th>
    <td class="y-bg"><select name="homepage_priority">
    <?php foreach ($priority as $val):?>
  <option value="<?php echo $val;?>" <?php if(isset($config['homepage_priority']) && $config['homepage_priority'] == $val) echo 'selected';?>><?php echo $val;?></option>
  	<?php endforeach;?>
   </select>
   <select name="homepage_changefreq">
   <?php foreach ($changefreq as $key => $val):?>	
  <option value="<?php echo $key;?>" <?php if(isset($config['homepage_changefreq']) && $config['homepage_changefreq'] == $key) echo 'selected';?>><?php echo $val;?></option>
  	<?php endforeach;?>
  </select></td>
</tr>
<tr>
     <th width="120">分类页更新频率</th>
    <td class="y-bg">
    <select name="category_priority">
  <?php foreach ($priority as $val):?>
  <option value="<?php echo $val;?>" <?php if(isset($config['category_priority']) && $config['category_priority'] == $val) echo 'selected';?>><?php echo $val;?></option>
  	<?php endforeach;?>
  </select>
  <select name="category_changefreq">
  <?php foreach ($changefreq as $key => $val):?>	
  <option value="<?php echo $key;?>" <?php if(isset($config['category_changefreq']) && $config['category_changefreq'] == $key) echo 'selected';?>><?php echo $val;?></option>
  	<?php endforeach;?>
  </select></td>
</tr>
<tr>
     <th width="120">内容页更新频率</th>
    <td class="y-bg">
    <select name="content_priority">
 <?php foreach ($priority as $val):?>
  <option value="<?php echo $val;?>" <?php if(isset($config['content_priority']) && $config['content_priority'] == $val) echo 'selected';?>><?php echo $val;?></option>
  	<?php endforeach;?>
 </select>
  <select name="content_changefreq">
  <?php foreach ($changefreq as $key => $val):?>	
  <option value="<?php echo $key;?>" <?php if(isset($config['content_changefreq']) && $config['content_changefreq'] == $key) echo 'selected';?>><?php echo $val;?></option>
  	<?php endforeach;?>
  </select></td>
</tr>
</table>
</div>

<div class="bk15"></div>
<input name="dosubmit" type="submit" class="button" value="提交" class="button">
</div>
</div>
</form>
</body>
<script type="text/javascript">

</script>
</html>